
var formConfig = {
  formPageConfig: {
"layout": "vertical",
"labelCol": {
  "span": 4
},
"wrapperCol": {
  "span": 18
},
"hideRequiredMark": false,
"saveButtonRefFunctionMethod": "warehouseInfo.saveWarehouseInfo"
},
  formItemList: [
{
  "code": "FORM_GRID",
  "label": "栅格布局",
  "type": "grid",
  "colNum": 4,
  "children": [
    {
      "code": "FORM_INPUT",
      "label": "仓库名称",
      "model": "warehouseName",
      "promptMessageContent": "",
      "type": "input",
      "width": "100%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请输入",
      "rules": [
        {
          "required": true,
          "message": "必填项"
        }
      ],
      "defaultValue": "",
      "clearable": false
    },
    {
      "code": "FORM_INPUT",
      "label": "仓库编码",
      "model": "warehouseCode",
      "promptMessageContent": "",
      "type": "input",
      "width": "100%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请输入",
      "rules": [
        {
          "required": false,
          "message": "必填项"
        }
      ],
      "defaultValue": "",
      "methods": {},
      "clearable": false
    },
    {
      "code": "FORM_SELECT_INPUT",
      "label": "仓库类型",
      "model": "warehouseType",
      "promptMessageContent": "",
      "type": "select",
      "width": "25%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请选择",
      "rules": [
        {
          "required": true,
          "message": "必填项"
        }
      ],
      "clearable": false,
      "dynamic": "dict",
      "distal": {
        "dictType": "dict",
        "dictCode": "warehouse_type",
        "dictConditionList": "[]"
      },
      "options": [
        {
          "value": "1",
          "label": "下拉框1"
        },
        {
          "value": "2",
          "label": "下拉框2"
        }
      ],
      "showSearch": false
    },
    {
      "code": "FORM_SELECT_INPUT",
      "label": "仓库级别",
      "model": "warehouseLevel",
      "promptMessageContent": "",
      "type": "select",
      "width": "100%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请选择",
      "rules": [
        {
          "required": true,
          "message": "必填项"
        }
      ],
      "clearable": false,
      "dynamic": "dict",
      "distal": {
        "dictType": "dict",
        "dictCode": "warehouse_level"
      },
      "options": [
        {
          "value": "1",
          "label": "下拉框1"
        },
        {
          "value": "2",
          "label": "下拉框2"
        }
      ],
      "showSearch": false
    },
    {
      "code": "FORM_SELECT_INPUT",
      "label": "上级仓库",
      "model": "parentWarehouseId",
      "promptMessageContent": "",
      "type": "select",
      "width": "100%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请选择",
      "rules": [
        {
          "required": false,
          "message": "必填项"
        }
      ],
      "clearable": false,
      "dynamic": "table",
      "distal": {
        "dictType": "table",
        "tableId": "b6132282d4b8c8f7edd2ab5c93a81c59",
        "dictField": "id",
        "dictTable": "wms_warehouse",
        "columnId": "f4da0229e4503f65f75f8d15d2fbbb7d",
        "dictText": "warehouse_name"
      },
      "options": [
        {
          "value": "1",
          "label": "下拉框1"
        },
        {
          "value": "2",
          "label": "下拉框2"
        }
      ],
      "fieldRelatedName": "parentWarehouseName",
      "showSearch": false
    }
  ]
},
{
  "code": "FORM_GRID",
  "label": "栅格布局",
  "type": "grid",
  "colNum": 4,
  "children": [
    {
      "code": "FORM_SELECT_INPUT",
      "label": "国家",
      "model": "country",
      "promptMessageContent": "",
      "type": "select",
      "width": "100%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请选择",
      "rules": [
        {
          "required": false,
          "message": "必填项"
        }
      ],
      "methods": {
        "customOnChange": "const areaConfig = this.getFormComponentConfig('province')\nconsole.log(areaConfig)\nareaConfig && areaConfig.updateRenderAreaNation && areaConfig.updateRenderAreaNation(value.trim() === '中国')"
      },
      "clearable": false,
      "dynamic": "table",
      "distal": {
        "dictType": "table",
        "dictConditionList": "[]",
        "tableId": "a0c023abe911e8f10703d92d850a4fda",
        "dictField": "letter2_code",
        "dictTable": "`saas-yinheximdm`.base_country_info",
        "columnId": "eeac676e25b728a67a19a8c7e676cfc1",
        "dictText": "cn_simple_name"
      },
      "options": [
        {
          "value": "1",
          "label": "下拉框1"
        },
        {
          "value": "2",
          "label": "下拉框2"
        }
      ],
      "showSearch": true,
      "searchCreate": true
    },
    {
      "code": "FORM_AREA_SELECT",
      "label": "州/省/地区，城市",
      "model": "FORM_AREA_SELECT-province-city-area",
      "promptMessageContent": "",
      "type": "KDistpickerSelect",
      "width": "150%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "地区地址",
      "rules": [
        {
          "required": true,
          "type": "object"
        }
      ],
      "clearable": false,
      "bindDataInfo": {
        "provinceId": "632fd3d819028af9d80f533d632f5ca7",
        "provinceKey": "province",
        "cityId": "869e679d42e60c3acecc3e190b4bc348",
        "cityKey": "city",
        "areaId": "5ef8c185df38b6ccd8f61e346188fb64",
        "areaKey": "area",
        "provinceNameId": "d4942472fd011240d1d057391bb8eb2c",
        "provinceNameKey": "provinceName",
        "cityNameId": "d4146460ff3b546d264a82bd2552c843",
        "cityNameKey": "cityName",
        "areaNameId": "0afbc685933ba696d406e8190cab8d7f",
        "areaNameKey": "areaName"
      },
      "bindNationComponent": "country",
      "renderIsChina": true
    },
    {
      "code": "FORM_INPUT",
      "label": "详细地址",
      "model": "address",
      "promptMessageContent": "",
      "type": "input",
      "width": "100%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请输入",
      "rules": [
        {
          "required": true,
          "message": "必填项"
        }
      ],
      "defaultValue": "",
      "clearable": false
    },
    {
      "code": "FORM_INPUT",
      "label": "详细地址2",
      "model": "address2",
      "promptMessageContent": "",
      "type": "input",
      "width": "100%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请输入",
      "rules": [
        {
          "required": false,
          "message": "必填项"
        }
      ],
      "defaultValue": "",
      "methods": {},
      "clearable": false
    }
  ]
},
{
  "code": "FORM_GRID",
  "label": "栅格布局",
  "type": "grid",
  "colNum": 4,
  "children": [
    {
      "code": "FORM_INPUT",
      "label": "邮政编码",
      "model": "postCode",
      "promptMessageContent": "",
      "type": "input",
      "width": "100%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请输入",
      "rules": [
        {
          "required": false,
          "message": "必填项"
        }
      ],
      "defaultValue": "",
      "methods": {},
      "clearable": false
    },
    {
      "code": "FORM_INPUT",
      "label": "坐标经度",
      "model": "longitude",
      "promptMessageContent": "",
      "type": "input",
      "width": "100%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请输入",
      "rules": [
        {
          "required": false,
          "message": "必填项"
        }
      ],
      "defaultValue": "",
      "clearable": false
    },
    {
      "code": "FORM_INPUT",
      "label": "坐标维度",
      "model": "latitude",
      "promptMessageContent": "",
      "type": "input",
      "width": "25%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请输入",
      "rules": [
        {
          "required": false,
          "message": "必填项"
        }
      ],
      "defaultValue": "",
      "clearable": false
    }
  ]
},
{
  "code": "FORM_GRID",
  "label": "栅格布局",
  "type": "grid",
  "colNum": 4,
  "children": [
    {
      "code": "FORM_INPUT",
      "label": "联系人",
      "model": "contactPerson",
      "promptMessageContent": "",
      "type": "input",
      "width": "100%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请输入",
      "rules": [
        {
          "required": false,
          "message": "必填项"
        }
      ],
      "defaultValue": "",
      "methods": {},
      "clearable": false
    },
    {
      "code": "FORM_INPUT",
      "label": "联系电话",
      "model": "contactPhone",
      "promptMessageContent": "",
      "type": "input",
      "width": "100%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请输入",
      "rules": [
        {
          "required": false,
          "message": "必填项"
        }
      ],
      "defaultValue": "",
      "methods": {},
      "clearable": false
    },
    {
      "code": "FORM_INPUT",
      "label": "E-mail",
      "model": "contactEmail",
      "promptMessageContent": "",
      "type": "input",
      "width": "100%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请输入",
      "rules": [
        {
          "required": false,
          "message": "必填项"
        }
      ],
      "defaultValue": "",
      "methods": {},
      "clearable": false
    }
  ]
},
{
  "code": "FORM_DIVIDER_BOX",
  "label": "外部平台信息，请勿擅自修改，编码信息请咨询技术人员",
  "type": "divider"
},
{
  "code": "FORM_GRID",
  "label": "栅格布局",
  "type": "grid",
  "colNum": 4,
  "children": [
    {
      "code": "FORM_INPUT",
      "label": "外部仓库所属平台",
      "model": "thirdWarehousePlatform",
      "promptMessageContent": "",
      "type": "input",
      "width": "100%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请输入",
      "rules": [
        {
          "required": false,
          "message": "必填项"
        }
      ],
      "defaultValue": "",
      "methods": {},
      "clearable": false
    },
    {
      "code": "FORM_INPUT",
      "label": "外部仓库编码",
      "model": "thirdWarehouseCode",
      "promptMessageContent": "",
      "type": "input",
      "width": "100%",
      "afterSaveResetStatus": false,
      "hidden": false,
      "disabled": false,
      "placeholder": "请输入",
      "rules": [
        {
          "required": false,
          "message": "必填项"
        }
      ],
      "defaultValue": "",
      "methods": {},
      "clearable": false
    }
  ]
},
{
  "code": "FORM_MY_FIELD",
  "label": "字段集",
  "model": "",
  "type": "myField",
  "children": [
    {
      "code": "FORM_TEXT_FIELD",
      "label": "创建时间",
      "model": "createTime",
      "type": "textField",
      "defaultValue": "2999-12-31 23:59:59"
    },
    {
      "code": "FORM_TEXT_FIELD",
      "label": "创建人工号",
      "model": "createUserCode",
      "promptMessageContent": "",
      "type": "textField",
      "hidden": false,
      "rules": [],
      "defaultValue": "${loginUserCode}"
    },
    {
      "code": "FORM_TEXT_FIELD",
      "label": "创建人名称",
      "model": "createUserName",
      "promptMessageContent": "",
      "type": "textField",
      "hidden": false,
      "rules": [],
      "defaultValue": "${loginUserName}"
    },
    {
      "code": "FORM_TEXT_FIELD",
      "label": "更新时间",
      "model": "modifyTime",
      "promptMessageContent": "",
      "type": "textField",
      "hidden": false,
      "rules": [],
      "defaultValue": "2999-12-31 23:59:59"
    },
    {
      "code": "FORM_TEXT_FIELD",
      "label": "更新人工号",
      "model": "modifyUserCode",
      "promptMessageContent": "",
      "type": "textField",
      "hidden": false,
      "rules": [],
      "defaultValue": "${loginUserCode}"
    },
    {
      "code": "FORM_TEXT_FIELD",
      "label": "更新人名称",
      "model": "modifyUserName",
      "promptMessageContent": "",
      "type": "textField",
      "hidden": false,
      "rules": [],
      "defaultValue": "${loginUserName}"
    }
  ]
}
],
  formRequestOptions: {
    formCode: 'warehouseInfoForm',
    saveUrl: '/warehouseInfoForm/save',
    editUrl: '/warehouseInfoForm/edit',
    queryUrl: '/warehouseInfoForm/getDataById'
  },
}
export default formConfig
